names = ['Michael', 'Bob', 'Tracy']
for name in names:
    print(name)

nums = list(range(5))
for num in nums:
    print(num)

sum = 0
n = 99
while n > 0:
    sum = sum + n
    n = n - 2
print(sum)

# 练习,请利用循环依次对list中的每个名字打印出Hello, xxx!：
L = ['Bart', 'Lisa', 'Adam']
for name in L:
    print(f"Hello,{name}!")

for user in L:
    print("Hello,%s!" % (user))

# 打印奇数
while n < 10:
    n = n + 1
    if n % 2 == 0:
        continue
    print(n)
